import bean.Computer;
import factory.CPU;
import factory.MainBoard;
import factory.impl.computer.InterComputerFactory;

/**
 * @author ：hongwuyang
 * @date ：2022/8/3 16:45
 * @description：
 */
public class AppClient {
    public static void main(String[] args) {
        InterComputerFactory interComputerFactory = new InterComputerFactory();
        CPU cpu = interComputerFactory.makeCpu();
        String cpu1 = cpu.CPUName("interCpu");
        MainBoard mainBoard = interComputerFactory.makeMainBoard();
        String mainBoardName = mainBoard.mainBoardName("inter主板");
        Computer computer = new Computer(cpu1,mainBoardName);
        System.out.println(computer);
    }
}
